package inline.classz;

/**
 * Created by Administrator on 2018/1/25.
 */
public class Person {

    private TelephoneNumber officeTelephone = new TelephoneNumber();
    private String name;

    public String getName() {
        return name;
    }

    public String getTelePhoneNumber() {
        return officeTelephone.getTelePhoneNumber();
    }

    public TelephoneNumber getOfficeTelePhone() {
        return officeTelephone;
    }

    //以下是TelephoneNumber类中拿来的  改装了一下
    public String getAreaCode() {
        return officeTelephone.getAreaCode();
    }

    public void setAreaCode(String areaCode) {
        officeTelephone.setAreaCode(areaCode);
    }

    public String getNumber() {
        return officeTelephone.getNumber();
    }

    public void setNumber(String number) {
        officeTelephone.setNumber(number);
    }

}
